package com.smedi.ismedi.dangeroussourcemanage.api.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;

/**
 * @author yangzhenzhou
 * @date 2022/11/10
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "统计某个时间段危险源数量")
public class DangerSourceTimeLineRequest {
    /**
     * 时间段查询开始时间节点
     */
    @ApiModelProperty(value = "时间段查询开始时间节点",required = true,example = "2022-01-01")
    @NotNull(message = "开始时间节点不能未空")
    private LocalDate startTime;

    /**
     *时间段查询结束时间节点
     */
    @ApiModelProperty(value = "时间段查询结束时间节点",required = true,example = "2022-01-31")
    @NotNull(message = "结束时间节点不能未空")
    private LocalDate endTime;
}
